from selenium import webdriver
import time 
driver = webdriver.Chrome()
driver.maximize_window()
#浏览器最大化,不带参数
# driver.set_window_size(width,height)
#定义浏览器页面大小
driver.get('http://www.baidu.com')
driver.find_element_by_id("kw").send_keys('孙笑川')
time.sleep(2)
# 延迟2秒
# driver.quit()